<%-- 
    Document   : comlst
    Created on : Oct 28, 2012, 10:32:39 PM
    Author     : Swami
--%>

<%@page import="survey_dlt.controller.commupd"%>
<%@page import="java.util.ArrayList"%>
<%@page import="survey_dlt.comupd"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@include file="../../mastertemplate/header.jsp"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1></h1>
    <%
        
        commupd s =new commupd();
      comupd cu=new comupd();
        ArrayList array = new ArrayList();  
        Object result = request.getAttribute("comlist");  
//        out.println("hello");
        //String abc=request.getAttribute("event").toString();
        array = (ArrayList<comupd>) result;  
        //out.println(abc);
        out.println("<h1> Committe List </h1> <table border=1>");
        for(int i=0;i<array.size();i++)
         {
            out.println("<tr>");
        cu= (comupd) array.get(i);
       
        out.println("<Td>" +cu.getCom_id());  
        out.println("<Td>" +cu.getCom_name());
        out.println("<Td><a href='editcmt?edit="+cu.getCom_id()+"' ><input type='button' value='Edit' id='"+cu.getCom_id()+"'/></a></Td>");
        //out.println("<a href='../qrydlt'><td><input type='button' value='Delete' name='"+ds.getSid()+"' id='"+ds.getSid()+"'></td></a>");
                  
        out.println("<tr>");
         }
        out.println("<table>");
       
        %>
        
        <%@include file="../../mastertemplate/footer.jsp"%>
    </body>
</html>
